package user;

import book.BookList;
import operation.IOperation;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: WHY
 * Date: 2022-06-24
 * Time: 19:06
 */
abstract    public class User {
    protected String name;//用户名

    public User(String name) {
        this.name = name;
    }
    public abstract int  menu();
    protected IOperation[] iOperations  ;//
    public void doOperation(int choice, BookList  booklist){
        this.iOperations[choice].work(booklist);
    }



}
